package com.only4play.usercenter.service.dubbo;

import com.only4play.usercenter.userperson.api.UserPersonApi;
import com.only4play.usercenter.userperson.bean.UserPersonBean;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * @author liyuncong
 * @version 1.0
 * @file UserPersonApiImpl
 * @brief UserPersonApiImpl
 * @details UserPersonApiImpl
 * @date 2024-01-18
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                     NAME               DESCRIPTION
 * 2024-01-18               liyuncong          Created
 */
@DubboService
public class UserPersonApiImpl implements UserPersonApi {
    @Override
    public UserPersonBean queryUserPersonByLoginUsername(String loginUsername) {
        // todo return fake data
        return UserPersonBean.builder()
            .id("1")
            .username(loginUsername)
            .loginUsername(loginUsername)
            .email(String.format("%s@mail.com", loginUsername))
            .phone("18888888888")
            .gender(30)
            .build();
    }
}
